package com.tc.service;

import com.github.pagehelper.PageInfo;
import com.tc.pojo.DriverAddress;

import java.util.List;

/****
 * @Author:admin
 * @Description:DriverAddress业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface DriverAddressService {

    /***
     * DriverAddress多条件分页查询
     * @param driverAddress
     * @param page
     * @param size
     * @return
     */
    PageInfo<DriverAddress> findPage(DriverAddress driverAddress, int page, int size);

    /***
     * DriverAddress分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<DriverAddress> findPage(int page, int size);

    /***
     * DriverAddress多条件搜索方法
     * @param driverAddress
     * @return
     */
    List<DriverAddress> findList(DriverAddress driverAddress);

    /***
     * 删除DriverAddress
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改DriverAddress数据
     * @param driverAddress
     */
    void update(DriverAddress driverAddress);

    /***
     * 新增DriverAddress
     * @param driverAddress
     */
    void add(DriverAddress driverAddress);

    /**
     * 根据ID查询DriverAddress
     * @param id
     * @return
     */
     DriverAddress findById(Integer id);

    /***
     * 查询所有DriverAddress
     * @return
     */
    List<DriverAddress> findAll();
}
